//
//  NSString+Extand.m
//  魔兽大数据
//
//  Created by 王右 on 2017/11/22.
//  Copyright © 2017年 王右. All rights reserved.
//

#import "NSString+Extand.h"

@implementation NSString (Extand)

- (NSString *)retureTimeStringWithFormate:(NSString *)timeFormate multiple:(NSInteger)multiple{
    NSTimeInterval interval = [self doubleValue];
    interval = interval / multiple;    
    NSDate *date = [NSDate dateWithTimeIntervalSince1970:interval];
    NSDateFormatter *objDateformat = [[NSDateFormatter alloc] init];
    [objDateformat setDateFormat:timeFormate];
    NSString * timeStr = [NSString stringWithFormat:@"%@",[objDateformat stringFromDate:date]];
    return timeStr;
}

- (NSString *)returnTimeStringMin{
    NSTimeInterval interval = [self doubleValue];
    interval = interval / 1000;
    NSInteger min = interval / 60;
    return [NSString stringWithFormat:@"%@分钟",@(min)];
}

@end
